using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Land_State : Ab_State
{
    private void OnDisable()
    {
        if (isStarted == false) return;
        player.isGrounded();
    }

    protected override void Start()
    {
        base.Start();
        InputActions.Player.Jump.started += (context) =>
        {
            if (!this.gameObject.activeSelf) return;
            animator.SetTrigger("Jump");
        };
    }

    private void FixedUpdate()
    {
        if (player.isMoving)
        {
            animator.SetBool("Run", true);
        }
    }
}
